package com.sanqiu.starters.dubbp2http.registrar;

import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ImportBeanDefinitionRegistrar;
import org.springframework.core.type.AnnotationMetadata;

public class Dubbo2HttpRegistrar implements ImportBeanDefinitionRegistrar {

    @Override
    public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {
        registry.registerBeanDefinition("dubbo2HttpBeanPostProcessor", BeanDefinitionBuilder.genericBeanDefinition(Dubbo2HttpBeanPostProcessor.class).getBeanDefinition());
    }

}
